#ifndef SERVEURAPP_H
#define SERVEURAPP_H

#include <QCoreApplication>
#include <QtSql/QtSql>


#include "../MySocket.h"
#include "../SocketException.h"
#include "clienthandler.h"
#include "../TransferedData.h"

class ServeurApp : public QCoreApplication
{
    Q_OBJECT
private :
    DataBase m_db;
    std::vector<ClientHandler*> m_clients;

public:
    ServeurApp( int & argc, char ** argv );
    int exec();
    void emptyDB();

public slots:
    void cleanUp();
};

#endif // SERVEURAPP_H
